<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-2-27
 * Time: 下午4:54
 */

namespace common\models;

/**
 * Class EdiviCreditOrderUsersPics
 * @package common\models
 *
 * @property EdiviOrderYpbl $ediviYp
 * @property EdiviCreditOrderUsers $ediviCreditOrderUser
 * @property EdiviOrderClbl $ediviCl
 */
class EdiviCreditOrderUsersPics extends \common\models\base\EdiviCreditOrderUsersPics
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviYp()
    {
        return $this->hasOne(EdiviOrderYpbl::className(), ['id' => 'edivi_yp_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrderUser()
    {
        return $this->hasOne(EdiviCreditOrderUsers::className(), ['id' => 'edivi_credit_order_user_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCl()
    {
        return $this->hasOne(EdiviOrderClbl::className(), ['id' => 'edivi_cl_id']);
    }
}